﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Cqrs.Common
{
    public static class FormatUtils
    {
        public static string LowercaseFirst(string word)
        {
            if (word.Length == 0) return "";
            return char.ToLower(word[0]) + word.Substring(1);
        }

        public static string RemoveNonAlphaChars(string word)
        {
            Regex rgx = new Regex("[^a-zA-Z0-9]");
            return rgx.Replace(word, "");
        }
    }
}
